package cn.edu.ctbu.service.impl;

import cn.edu.ctbu.VO.ShopStatusVO;
import cn.edu.ctbu.mapper.ShopStatusMapper;
import cn.edu.ctbu.service.IShopStatusService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import io.swagger.annotations.ApiOperation;
import org.springframework.cache.annotation.CachePut;
import org.springframework.cache.annotation.Cacheable;
import org.springframework.stereotype.Service;

@Service
public class ShopStatusServiceImpl extends ServiceImpl<ShopStatusMapper, ShopStatusVO> implements IShopStatusService {
    @Override
    @CachePut(cacheNames = "shopStatus",key = "0")
    @ApiOperation("修改营业状态")
    public ShopStatusVO updateStatus(Integer status) {
        ShopStatusVO vo=new ShopStatusVO();
        vo.setStatus(status);
        return vo;
    }

    @Override
    @Cacheable(cacheNames = "shopStatus",key="0")
    @ApiOperation("查看营业状态")
    public ShopStatusVO get() {
        return null;
    }
}
